package com.example.demo.service.dto;

import lombok.Data;
import org.camunda.bpm.engine.impl.core.variable.scope.VariableStore;
import org.camunda.bpm.engine.impl.persistence.entity.IdentityLinkEntity;
import org.camunda.bpm.engine.impl.persistence.entity.VariableInstanceEntity;
import org.camunda.bpm.engine.task.Task;
import org.camunda.bpm.engine.variable.VariableMap;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @program: camunda-springboot-example
 * @description:
 * @author: chenxf
 * @create: 2022-01-18 16:21
 **/
@Data
public class TaskDto {
    private String taskId;
    private String name;
    private String processInstanceId;
    private String assignee;
    private String description;
    private Date dueDate;
    private Date followUpDate;
    private Date createTime;
    private Map<String, Object> map;

    public TaskDto(){

    }

    public TaskDto(Task task){
        this.name=task.getName();
        this.processInstanceId=task.getProcessInstanceId();
        this.createTime=task.getCreateTime();
        this.dueDate=task.getDueDate();
        this.description=task.getDescription();
        this.followUpDate=task.getFollowUpDate();
    }
}
